package com.xjtu.platform.common;

import java.io.File;

public class Constants {
    public static final String PIC_ROOT_PATH = "D:/platformPic/ques";
    public static final String CSV_ROOT_PATH = "D:/platfromCSV/";
    public static final String HEADER_TOKEN = "Token";
    public static final int QUESTION_DOABLE = 0;
    public static final int QUESTION_CHECKABLE = 1;
    public static final int QUESTION_EXPORTABLE = 2;
    public static final int REQUEST_EXPORTABLE = 4;
    public static final int CREDIT_PER_QUES = 10;
    public static final Integer REQUEST_CHECKABLE = 3;
    public static final Integer NO_CONSULT_IN_PROGRESS = 2001;
    public static final Integer HAS_CONSULT_IN_PROGRESS = 2002;
    public static final Integer WRONG_PASSWORD = 1007;
    public static final Integer INVALID_NEW_PASSWORD = 1008;

    public static final Integer SUCCESS_MODIFY_PASSWORD = 1009;
    public static final Integer NOT_COMPLETE_ARRANGE = 3001;

    public static final Integer CONFIRM_ALL_ARRANGE_SUCCESS = 3002;

    public static final Integer INIT_NUM_OF_CONSULT = 8;
    public static final String AVATAR_DIR = "D:/xjtuse-psy/touxiang";
    public static final String FILE_DIR = "D:/xjtuse-psy/files/";
    public static final Integer FIRST_CONSULT_NUM = 1;
    public static final Integer CONSULTING_STATE = 2;
    public static final Integer CONSULT_INIT_STATE = 1;

//    public static final String AVATAR_DIR = "/home/avatar";
//    public static final String FILE_DIR = "/home/report";

    public static void checkPath(){
        File file1=new File(AVATAR_DIR);
        File file2=new File(FILE_DIR);
        if(!file1.exists()){
            file1.mkdirs();
        }
        if(!file2.exists()){
            file2.mkdirs();
        }
    }
}
